#ifndef CONTACTUSERLIST_H
#define CONTACTUSERLIST_H
#include <QListWidget>
#include <QEvent>
#include <QWheelEvent>
#include <QScrollBar>
#include "conuseritem.h"
class ContactUserList :public QListWidget
{
    Q_OBJECT
public:
    ContactUserList(QWidget* parent=nullptr);
    void ShowRedPoint(bool bshow=false);
protected:
    bool eventFilter(QObject* watch,QEvent* event);
private:
    void addContactUserList();

    ConUserItem* _add_friend_item;
    QListWidgetItem * _groupitem;
    bool _load_pending;
public slots:
    void slot_item_click(QListWidgetItem* item);
    void slot_auth_rsp(std::shared_ptr<AuthRsp> authrsp);
    void slot_add_auth_firend(std::shared_ptr<AuthInfo> authinfo);
signals:
    void sig_loading_contact_user();
    void sig_switch_apply_friend_page();
    void sig_switch_friend_info_page(std::shared_ptr<UserInfo>);

};

#endif // CONTACTUSERLIST_H
